all: synchronizer

synchronizer: synchronizer.cpp syncmessage.cpp ../utils/libutils.a
	g++ -std=c++0x -o synchronizer synchronizer.cpp syncmessage.cpp -L../utils -lpthread -lutils
	
../utils/libutils.a: ../utils/Makefile
	make -f ../utils/Makefile -C ../utils
	
tester: tester.cpp syncmessage.cpp
	g++ -std=c++0x -o tester tester.cpp syncmessage.cpp -L../utils -lpthread -lutils
	
clean:
	rm synchronizer
